.class public Les/xo0;
.super Ljava/lang/Object;
.source "Volume.java"


# direct methods
.method public static a(Ljava/lang/String;Z)Ljava/lang/String;
    .locals 7

    const/4 v0, 0x0

    const/4 v1, 0x0

    if-nez p1, :cond_5

    .line 16
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p1

    add-int/lit8 v2, p1, -0x1

    :goto_0
    if-ltz v2, :cond_0

    .line 17
    invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C

    move-result v3

    invoke-static {v3}, Les/xo0;->a(C)Z

    move-result v3

    if-nez v3, :cond_0

    add-int/lit8 v2, v2, -0x1

    goto :goto_0

    :cond_0
    add-int/lit8 v3, v2, 0x1

    add-int/lit8 v4, v2, -0x1

    :goto_1
    if-ltz v4, :cond_1

    .line 18
    invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C

    move-result v5

    invoke-static {v5}, Les/xo0;->a(C)Z

    move-result v5

    if-eqz v5, :cond_1

    add-int/lit8 v4, v4, -0x1

    goto :goto_1

    :cond_1
    if-gez v4, :cond_2

    return-object v0

    :cond_2
    add-int/lit8 v4, v4, 0x1

    .line 19
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(I)V

    .line 20
    invoke-virtual {v0, p0, v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;

    sub-int/2addr v2, v4

    add-int/lit8 v2, v2, 0x1

    .line 21
    new-array v5, v2, [C

    .line 22
    invoke-virtual {p0, v4, v3, v5, v1}, Ljava/lang/String;->getChars(II[CI)V

    add-int/lit8 v4, v2, -0x1

    :goto_2
    if-ge v1, v2, :cond_3

    const/16 v6, 0x30

    .line 23
    aput-char v6, v5, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    :cond_3
    const/16 v1, 0x31

    if-gez v4, :cond_4

    .line 24
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 25
    :cond_4
    aput-char v1, v5, v4

    .line 26
    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append([C)Ljava/lang/StringBuilder;

    .line 27
    invoke-virtual {v0, p0, v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;

    .line 28
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0

    .line 29
    :cond_5
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p1

    const/4 v2, 0x4

    if-le p1, v2, :cond_7

    add-int/lit8 v2, p1, -0x4

    .line 30
    invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C

    move-result v2

    const/16 v3, 0x2e

    if-eq v2, v3, :cond_6

    goto :goto_3

    .line 31
    :cond_6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    add-int/lit8 p1, p1, -0x3

    .line 32
    invoke-virtual {v0, p0, v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;

    const-string p0, "rar"

    .line 33
    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 34
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0

    :cond_7
    :goto_3
    return-object v0
.end method

.method private static a(C)Z
    .locals 1

    const/16 v0, 0x30

    if-lt p0, v0, :cond_0

    const/16 v0, 0x39

    if-gt p0, v0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method

.method public static a(Les/vo0;Les/dp0;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lde/innosystec/unrar/exception/RarException;,
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Les/dp0;->b()Lde/innosystec/unrar/rarfile/g;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/g;->r()B

    move-result v1

    const/16 v2, 0x14

    if-lt v1, v2, :cond_0

    .line 3
    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/g;->l()I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    .line 4
    invoke-virtual {p1}, Les/dp0;->a()J

    move-result-wide v3

    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/g;->l()I

    move-result v0

    xor-int/2addr v0, v2

    int-to-long v0, v0

    cmp-long v2, v3, v0

    if-eqz v2, :cond_0

    .line 5
    sget-object v0, Ljava/lang/System;->err:Ljava/io/PrintStream;

    const-string v1, "Data Bad CRC"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 6
    :cond_0
    invoke-virtual {p0}, Les/vo0;->o()Lde/innosystec/unrar/rarfile/k;

    move-result-object v0

    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/k;->m()Z

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_2

    .line 7
    invoke-virtual {p0}, Les/vo0;->s()Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1

    :cond_2
    :goto_0
    const/4 v0, 0x1

    .line 8
    :goto_1
    invoke-virtual {p0}, Les/vo0;->g()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3, v0}, Les/xo0;->b(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v0

    .line 9
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 10
    invoke-virtual {p0}, Les/vo0;->r()Les/wo0;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 11
    invoke-interface {v0, v3}, Les/wo0;->a(Ljava/io/File;)Z

    move-result v0

    if-nez v0, :cond_3

    return v2

    .line 12
    :cond_3
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_4

    return v2

    .line 13
    :cond_4
    invoke-virtual {p0, v3}, Les/vo0;->a(Ljava/io/File;)V

    .line 14
    invoke-virtual {p0}, Les/vo0;->t()Lde/innosystec/unrar/rarfile/g;

    move-result-object p0

    if-nez p0, :cond_5

    return v2

    .line 15
    :cond_5
    invoke-virtual {p1, p0}, Les/dp0;->a(Lde/innosystec/unrar/rarfile/g;)V

    return v1
.end method

.method public static b(Ljava/lang/String;Z)Ljava/lang/String;
    .locals 8

    const/16 v0, 0x30

    const/16 v1, 0x3a

    const/4 v2, 0x0

    const/4 v3, 0x0

    if-nez p1, :cond_5

    .line 1
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p1

    add-int/lit8 v4, p1, -0x1

    :goto_0
    if-ltz v4, :cond_0

    .line 2
    invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C

    move-result v5

    invoke-static {v5}, Les/xo0;->a(C)Z

    move-result v5

    if-nez v5, :cond_0

    add-int/lit8 v4, v4, -0x1

    goto :goto_0

    :cond_0
    add-int/lit8 v5, v4, 0x1

    add-int/lit8 v6, v4, -0x1

    :goto_1
    if-ltz v6, :cond_1

    .line 3
    invoke-virtual {p0, v6}, Ljava/lang/String;->charAt(I)C

    move-result v7

    invoke-static {v7}, Les/xo0;->a(C)Z

    move-result v7

    if-eqz v7, :cond_1

    add-int/lit8 v6, v6, -0x1

    goto :goto_1

    :cond_1
    if-gez v6, :cond_2

    return-object v2

    :cond_2
    add-int/lit8 v6, v6, 0x1

    .line 4
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2, p1}, Ljava/lang/StringBuilder;-><init>(I)V

    .line 5
    invoke-virtual {v2, p0, v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;

    sub-int/2addr v4, v6

    add-int/lit8 v4, v4, 0x1

    .line 6
    new-array v7, v4, [C

    .line 7
    invoke-virtual {p0, v6, v5, v7, v3}, Ljava/lang/String;->getChars(II[CI)V

    add-int/lit8 v4, v4, -0x1

    :goto_2
    if-ltz v4, :cond_3

    .line 8
    aget-char v3, v7, v4

    add-int/lit8 v3, v3, 0x1

    int-to-char v3, v3

    aput-char v3, v7, v4

    if-ne v3, v1, :cond_3

    .line 9
    aput-char v0, v7, v4

    add-int/lit8 v4, v4, -0x1

    goto :goto_2

    :cond_3
    if-gez v4, :cond_4

    const/16 v0, 0x31

    .line 10
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 11
    :cond_4
    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append([C)Ljava/lang/StringBuilder;

    .line 12
    invoke-virtual {v2, p0, v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;

    .line 13
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0

    .line 14
    :cond_5
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p1

    const/4 v4, 0x4

    if-le p1, v4, :cond_a

    add-int/lit8 v4, p1, -0x4

    .line 15
    invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C

    move-result v4

    const/16 v5, 0x2e

    if-eq v4, v5, :cond_6

    goto :goto_6

    .line 16
    :cond_6
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    add-int/lit8 v4, p1, -0x3

    .line 17
    invoke-virtual {v2, p0, v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;

    add-int/lit8 v5, v4, 0x1

    .line 18
    invoke-virtual {p0, v5}, Ljava/lang/String;->charAt(I)C

    move-result v5

    invoke-static {v5}, Les/xo0;->a(C)Z

    move-result v5

    if-eqz v5, :cond_9

    add-int/lit8 v5, v4, 0x2

    .line 19
    invoke-virtual {p0, v5}, Ljava/lang/String;->charAt(I)C

    move-result v5

    invoke-static {v5}, Les/xo0;->a(C)Z

    move-result v5

    if-nez v5, :cond_7

    goto :goto_4

    :cond_7
    const/4 v5, 0x3

    new-array v5, v5, [C

    .line 20
    invoke-virtual {p0, v4, p1, v5, v3}, Ljava/lang/String;->getChars(II[CI)V

    const/4 p0, 0x2

    .line 21
    :goto_3
    aget-char p1, v5, p0

    add-int/lit8 p1, p1, 0x1

    int-to-char p1, p1

    aput-char p1, v5, p0

    if-ne p1, v1, :cond_8

    .line 22
    aput-char v0, v5, p0

    add-int/lit8 p0, p0, -0x1

    goto :goto_3

    .line 23
    :cond_8
    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append([C)Ljava/lang/StringBuilder;

    goto :goto_5

    :cond_9
    :goto_4
    const-string p0, "r00"

    .line 24
    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 25
    :goto_5
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0

    :cond_a
    :goto_6
    return-object v2
.end method
